﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Freedom.Models.Entities;

namespace Freedom.Models.Interfaces
{
    /// <summary>
    /// 案例类型服务接口
    /// autor: Penn Yao
    /// </summary>
    interface IPortfolioClassService
    {
        /// <summary>
        /// 添加对象
        /// </summary>
        /// <param name="obj">对象</param>
        void addClass(tb_PortfolioClass obj);

        /// <summary>
        /// 删除对象
        /// </summary>
        /// <param name="nID">ID</param>
        /// <returns></returns>
        bool deleteClass(int nID);

        /// <summary>
        /// 更新对象
        /// </summary>
        /// <param name="obj">对象</param>
        void updateClass(tb_PortfolioClass obj);

        /// <summary>
        /// 获取对象
        /// </summary>
        /// <param name="nID">ID</param>
        /// <returns></returns>
        tb_PortfolioClass getClass(int nID);

        /// <summary>
        /// 获取所有对象
        /// </summary>
        /// <returns></returns>
        IQueryable<tb_PortfolioClass> getAllClass();

        /// <summary>
        /// 保存
        /// </summary>
        void save();
    }
}
